import {
	request
} from "../utils/request"

export function apiGetBannerData() {
	return request({
		url: '/homeBanner'
	})
}

export function apiGetRandomImage() {
	return request({
		url: '/randomWall'
	})
}

export function apiGetNotice(data={}) {
	return request({
		url: '/wallNewsList',
		data,
	})
}

export function apiGetClassList(data={}) {
	return request({
		url: '/classify',
		data,
	})
}

export function apiGetImagesByCategory(data={}) {
	return request({
		url: '/wallList',
		data,
	})
}

export function apiSubmitScore(data={}){
	return request({
		url: '/setupScore',
		data,
	})
}

export function apiSWallpaperDownloadRecord(data={}){
	return request({
		url: '/downloadWall',
		data,
	})
}

// 根据壁纸id获取壁纸详情
export function apiGetWallpaperDetailById(data={}){
	return request({
		url: '/detailWall',
		data,
	})
}

// 获取用户基本信息
export function apiGetUserInfo(){
	return request({
		url: '/userInfo'
	})
}

// 获取用户下载壁纸列表或评分列表
export function apiGetUserDownloadOrScoreWallpapers(data={}) {
	return request({
		url: '/userWallList',
		data,
	})
}

// 获取用户下载壁纸列表或评分列表
export function apiGetNoticeDetail(data={}) {
	return request({
		url: '/wallNewsDetail',
		data,
	})
}

// 搜索壁纸
export function apiSearchWallpaper(data={}) {
	return request({
		url: '/searchWall',
		data,
	})
}